Skip to content

Fix off-by-one bug in RTW protocol decoder.#24

Merged
cjkas merged 1 commit into
mainfrom
scz/fix-asa-go-encoding
Apr 20, 2026
Merged

Fix off-by-one bug in RTW protocol decoder.#24
cjkas merged 1 commit into
mainfrom
scz/fix-asa-go-encoding

Conversation

@cjkas
Copy link
Copy Markdown
Owner

@cjkas cjkas commented Apr 19, 2026

The RTW decoder formula encKey - 133 was off by one versus the RTW encoder (which maps command N to encKey N + 132). This caused every non-My RTW command to decode as the wrong button (e.g. Up decoded as My, Down as MyUp). Also adds rawCmd diagnostic field to received frames for protocol debugging.

The RTW decoder formula encKey - 133 was off by one versus the
RTW encoder (which maps command N to encKey N + 132). This caused
every non-My RTW command to decode as the wrong button (e.g. Up
decoded as My, Down as MyUp). Also adds rawCmd diagnostic field to
received frames for protocol debugging.
@cjkas cjkas merged commit 5c90715 into main Apr 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant